﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UAgentMacKeepList.aspx.cs" Inherits="IHISCETeim.Web.AgentSys.SvrMgr.UAgentMacKeepList" %>
<form id="pagerForm" method="post" action="SvrMgr/UAgentMacKeepList.aspx">
<input type="hidden" name="searchAgentName" value="<%=searchAgentName %>" />
<input type="hidden" name="SerialNumber" value="<%=SerialNumber %>" />
<input type="hidden" name="IntoDateFrom" value="<%=IntoDateFrom %>" />
<input type="hidden" name="IntoDateTo" value="<%=IntoDateTo %>" />
<input type="hidden" name="orderField" value="<%=orderField %>" />
<input type="hidden" name="orderDirection" value="<%=orderDirection %>" />
<input type="hidden" name="pageNum" value="1" />
<input type="hidden" name="numPerPage" value="<%=numPerPage %>" />
</form>
<form id="form1" runat="server" method="post" action="SvrMgr/UAgentMacKeepList.aspx" onsubmit="return navTabSearch(this);">
<div class="pageContent"> 
    <div class="searchBar">
     
        <table class="searchContent">
            <tr>
                <% if(HasPower(IHISCETeim.Web.Permission.经销商平台_公司人员)) { %>
            
                <td>经销商：</td>
                <td colspan="5">
                    <input name="searchAgentName" type="text" value="<%=searchAgentName %>"  />
                </td>
            
            <%} %>                
                <td>
                    机号:
                    </td>
                    <td>
                    <input type="text" name="SerialNumber" value="<%=SerialNumber %>" />
                    </td>
                    <td>
                   交机日期从：
                </td>
                <td >
                   <input name="IntoDateFrom" type="text" size=8 value="<%=IntoDateFrom %>"  class="date"/>
                </td>
                <td>
                   到：
                </td>
                <td>
                   <input name="IntoDateTo" type="text" size=8 value="<%=IntoDateTo %>"  class="date"/>
                </td>
                <td>
                    <div class="subBar">
                        <ul>
                            <li>
                                <div class="buttonActive">
                                    <div class="buttonContent">
                                        <button type="submit">
                                            检索</button></div>
                                </div>
                            </li>
                        </ul>
                    </div>
                </td>
            </tr>                        
        </table>
    </div>
    <div class="panelBar">                    
        <ul class="toolBar">           
            <% if (HasPower(IHISCETeim.Web.Permission.修改))
                {%>
            <li><a class="edit" href="/MachineSys/UserModel/UMacKeepEdit.aspx?SerialNumber={sid_user}" target="dialog" title="机器保养信息修改" rel="UMacKeepEdit" max=false  mask=true  maxable=false  minable=false  resizable=true drawable=true  width="850" height="550"><span>修改</span></a></li>
            <%} %>
            <% if (HasPower(IHISCETeim.Web.Permission.删除))
                {%>
            <li><a class="delete" href="/MachineSys/sysAjaxDone.ashx?ajaxmethod=DeleteUMacKeep&SerialNumber={sid_user}" target="ajaxTodo" title="确定要删除吗?"><span>删除</span></a></li>
            <%} %>        

            <% if (HasPower(IHISCETeim.Web.Permission.导出))
             {%>
            <li><a class="icon" href="/MachineSys/UserModel/UMacKeepSSZQL.aspx" target="navTab" title="查看定期服务实施及时率" rel="UMacKeepSSZQL"><span>定期服务实施及时率</span></a></li>
           <%} %>
             <% if (HasPower(IHISCETeim.Web.Permission.经销商平台_公司人员))
             {%>
            <li><a class="icon" href="SvrMgr/UAgentMacKeepZQL.aspx" target="navTab" title="定期服务实施准确率" rel="UAgentMacKeepZQL"><span>定期服务实施准确率</span></a></li>
           <%} %>

             <% if (HasPower(IHISCETeim.Web.Permission.导出))
                {%>
            <li><a class="icon" href="/MachineSys/UserModel/ExportExecl/ExportUMacKeepList.aspx?orderField=<%=orderField %>&orderDirection=<%=orderDirection %>&searchAgentName=<%= Server.UrlEncode( searchAgentName) %>&SerialNumber=<%=SerialNumber %>&IntoDateFrom=<%=IntoDateFrom %>&IntoDateTo=<%=IntoDateTo %>" target="_blank" title="确定要导出吗?"><span>导出</span></a></li>
            <%} %>
        </ul>
    </div>
                
    <asp:repeater id="rpMenu" runat="server">
        <HeaderTemplate>
        <table class="list" width="1950" layoutH="80">                   
        <thead>
            <tr  >                   
                <th  orderField="SerialNumber" class="asc" width="80">
                    机号
                </th>
                <th orderField="IntoDate" class="asc" width="80">
                    交机日期
                </th>
                <th  align="center"  width="90">
                    客户
                </th>  
                <th width="90">
                    经销商
                </th>
                 <th width="90">
                    服务担当
                </th>
                <th width="120">
                    一期费用
                </th>
                <th width="120">
                    二期费用
                </th>
                <th align="center" width="100">
                    50H
                </th>
                <th align="center" width="100">
                    250H
                </th> 
                <th align="center" width="100">
                    500H
                </th> 
                <th align="center" width="100">
                    750H
                </th>
                <th align="center" width="100">
                    1000H
                </th> 
                <th align="center" width="100">
                    1250H
                </th>   
                    <th align="center" width="100">
                    1500H
                </th>
                    <th align="center" width="100">
                    1750H
                </th>
                <th align="center" width="100">
                    2000H
                </th>  
                <th  width="100">完成率</th> 
                <th >扣罚次数</th>                          
            </tr>
        </thead>
        <tbody>
        </HeaderTemplate>
        <ItemTemplate>
            <tr target="sid_user" rel="<%# Eval("SerialNumber") %>"> 
				<td>
                    <%# Eval("SerialNumber") %>
                    <%--<a class="add" href="UserModel/UMacKeepAlarmListBySerialNumber.aspx?SerialNumber=<%# Eval("SerialNumber") %>" target="dialog" title="机器保养短信提醒记录" rel="UMacKeepAlarmListBySerialNumber" max=false  mask=true  maxable=false  minable=false  resizable=false drawable=true  width="900" height="350"> <%# Eval("SerialNumber")%></a>--%>
                </td>
                <td >
                    <%# Convert.ToDateTime(Eval("IntoDate")).ToShortDateString()%>
                </td>  
				<td title="联系电话:<%# Eval("CustomerMobile")%>"><%# Eval("CustomerName")%></td>
			    <td title="联系电话:<%# Eval("AgentTel")%>" ><%# Eval("AgentName")%></td>
                <td ><%# Eval("SrvActRealName")%></td>
                <td title="" ><%# Eval("FirstCost")%>|<%# Eval("FirstCostDate")%></td>
                <td title="" ><%# Eval("SecondCost")%>|<%# Eval("SecondCostDate")%></td>
                <td ><%# GetUMacKeepDetail( Eval("SerialNumber"),50) %></td>
                <td ><%# GetUMacKeepDetail( Eval("SerialNumber"),250) %></td>
                <td ><%# GetUMacKeepDetail( Eval("SerialNumber"),500) %></td>
                <td ><%# GetUMacKeepDetail( Eval("SerialNumber"),750) %></td>
                <td ><%# GetUMacKeepDetail( Eval("SerialNumber"),1000) %></td>
                <td ><%# GetUMacKeepDetail( Eval("SerialNumber"),1250) %></td>
                <td ><%# GetUMacKeepDetail( Eval("SerialNumber"),1500) %></td>
                <td ><%# GetUMacKeepDetail( Eval("SerialNumber"),1750) %></td>
                <td ><%# GetUMacKeepDetail( Eval("SerialNumber"),2000) %></td> 
                <td >
                    <%# GetPer(Eval("YZCS"),Eval("DQYZCS"))%> %                 
                </td>   
                <td>
                     <%# Eval("khxm") %>
                </td>                            
			</tr>
        </ItemTemplate>
        <FooterTemplate>
            <tr>
                <td colspan="6" align="right"></td>
                <td colspan="10" class="">
                    合计:<b style="color:red;">需保养次数:<%=sumdt.Rows[0]["allkeeptime"]%>,已保养次数:<%=sumdt.Rows[0]["keepedtime"]%></b>
                    总保养完成率：  <%=GetPer(sumdt.Rows[0]["keepedtime"],sumdt.Rows[0]["allkeeptime"])%>%
                </td>
            </tr>
        </tbody>
    </table>
    </FooterTemplate> 
    </asp:repeater>
    <div class="panelBar">
        <div class="pages">
            <span>显示</span>
            <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
                <%=SetnumPerPage() %>
            </select>
            <span>条，共<%=TotalCount%>条</span>
        </div>
        <div class="pagination" targettype="navTab" totalcount="<%=TotalCount%>" numperpage="<%=numPerPage %>"
            pagenumshown="10" currentpage="<%=pageNum %>">
        </div>
    </div>            
</div>
</form>
